<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    public function up()
    {
        /**
         * 景点描述
         */
        Schema::create('scenic_spot_introduces', function (Blueprint $table) {
            $table->id();
            $table->string('scenic_id',32)->comment('景点id');
            $table->text('introduce')->comment('景点完整描述 需要去除html标签,换行等 ,保留图片地址到景点图集中');
            $table->timestamps();
            $table->index('scenic_id','idx_spot');
        });
    }

    public function down()
    {
        Schema::dropIfExists('scenic_spot_introduces');
    }
};
